package uit.jee.lib.dto;

/**
 *
 * @author ngloc_it
 */
public class BookDTO {
    public final static String BOOK_ID = "MaSach";
    public final static String BOOK_NAME = "TenSach";
    public final static String BOOK_AUTHOR = "TenTacGia";
    public final static String BOOK_PUBLISHER = "NhaXuatBan";
    public final static String BOOK_PUBLIST_DATE = "NgayXuatBan";
    public final static String BOOK_MAIN_CONTENT = "NoiDungChinh";
    public final static String BOOK_BOOKTYPE_ID = "MaLoaiSach";
    public final static String BOOK_AUTHOR_ID = "MaTacGia";
    public final static String BOOK_COUNTER = "LuotMuon";
    public final static String BOOK_STATUS = "TrangThai";
    public final static String BOOK_IMG_PATH = "FileAnh";
    public final static String BOOK_BOOKTYPE = "TenLoaiSach";

    public final static int BOOK_TATUS_ORDER = -1; // sach da dat trc
    public final static int BOOK_TATUS_FREE = 0; // sach chua dat truoc
    public final static int BOOK_TATUS_UN_FREE = 1; // sach da muon

    private String bookId;
    private String bookTypeId;
    private String authorId;
    private String name;    
    private String publisher;
    private String publisDate;
    private String mainContent;
    private int counter;
    private int status;
    private String imgPath;


    private String bookType;
    private String author;

    public BookDTO() {
    }

    public BookDTO(String bookId, String bookTypeId, String authorId, String name, String publisher, String publisDate, String mainContent, int counter, int status, String bookType, String author, String imgPath) {
        this.bookId = bookId;
        this.bookTypeId = bookTypeId;
        this.authorId = authorId;
        this.name = name;
        this.publisher = publisher;
        this.publisDate = publisDate;
        this.mainContent = mainContent;
        this.counter = counter;
        this.status = status;
        this.bookType = bookType;
        this.author = author;
        this.imgPath = imgPath;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCounter() {
        return counter;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getBookTypeId() {
        return bookTypeId;
    }

    public void setBookTypeId(String bookTypeId) {
        this.bookTypeId = bookTypeId;
    }

    public String getMainContent() {
        return mainContent;
    }

    public void setMainContent(String mainContent) {
        this.mainContent = mainContent;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPublisDate() {
        return publisDate;
    }

    public void setPublisDate(String publisDate) {
        this.publisDate = publisDate;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public boolean checkValidate(){
        return true;
    }
}
